<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="photoimg" accept="image/jpeg,image/x-png,image/gif,image/x-ms-bmp" />
<input type="submit" name="sub" value="sub" />?
</form>

<?php
$bb = 'Bé thế nào rồi...';
$content = trim($bb,'Bé thế nào rồi...');
echo $bb;


if(@$_POST[sub]){
	$file = $_FILES['photoimg']['tmp_name'];
	$name = $_FILES['photoimg']['name'];
	$type = $_FILES['photoimg']['type'];
	$size = ($_FILES['photoimg']['size'] / 1024);
	echo $type;  
	/*
	image/jpeg
	image/gif
	image/png
	image/bmp
	*/
}

